export default function queueRepeatTaskNameBuilder({
	refId,
	taskType,
	taskIdx,
	triggerType,
	isSpecialTask,
	taskId,
}) {
	let ret = `${refId}_${taskType}`;

	if (taskIdx >= 0) {
		// 可用性监测
		taskId += `_${taskIdx}`;
	}

	if (triggerType === 'schedule' || triggerType === 'scheduleIncrement') {
		ret += '_schedule';
	} else {
		// 自定义任务
		ret += `_${Date.now()}`;
	}

	if (isSpecialTask) {
		// 自定义专项扫描
		ret += `_${taskId}`;
	}

	return ret;
}
